package com.weichen.studentgameexchange.common.exception;

import lombok.Data;

/**
 * 功能：
 * 作者：惟尘
 * 日期：2025/1/23 10:43
 */
@Data
public class ServiceException extends RuntimeException{

    private final String code;

    public ServiceException(String msg){
        super(msg);
        this.code = "500";
    }

    public ServiceException(String code,String msg){
        super(msg);
        this.code = code;
    }
}
